package com.netistate.util;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class Test {

	public static void main(String[] args) {
		
		
		SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
		Date date = new Date();
		Calendar calendar = Calendar.getInstance();
	    calendar.setTime(date);
	    calendar.add(Calendar.DATE,-14);
	    Date date2 = calendar.getTime();
		
		String begintime = df.format(date);
		String endtime = df.format(date2);
		
		
	}
}
